package com.zhiyou100.service;

import com.zhiyou100.dao.UserDao;
import com.zhiyou100.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImp  implements  UserService{
    @Autowired
    private UserDao userDao;
    @Override
    public User getOneByUname(String uname) {
        return userDao.getOneByUname(uname);
    }
    public void  addOne(User u){
        userDao.addOne(u);
    }
    public  void  jiHuo(Integer uid){
        userDao.changeUstatus(uid,1);
    }
}
